#! /bin/bash

~
port=5005
echo  'default port:' $port
if  [ -n "$1" ] ;then
   port=$2
   echo 'port changed to' $2
fi
echo 'use port => '$port


docker stop nignx$port
docker rm nginx$port


docker run -itd --name nginx$port -p $port:80 -p 443:443 -v /nginx/nginx$port/conf:/etc/nginx -v /nginx/nginx$port/nginx/html:/usr/share/nginx/html nginx

